<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>demo</title>
  <script type="text/javascript" src="../vue.js"></script>
</head>

<body>
  <div id="app">
     <!-- v-show也是需要接收一个boolean 决定当前元素时display：none还是block -->
     <!-- radio 单选按钮 checkbox 复选框   -->
    <form action="javascript:;">
      <input type="checkbox" name="agree" v-model="isArgree">是否同意此协议
      <hr>
      <input type="checkbox" name="food" value="炸鸡" v-model="food">炸鸡
      <input type="checkbox" name="food" value="啤酒" v-model="food">啤酒
      <input type="checkbox" name="food" value="薯条" v-model="food">薯条
      <hr>
      <input type="radio" name="sex" value="男" v-model="sex">🚹
      <input type="radio" name="sex" value="女" v-model="sex">🚺
      <input type="radio" name="sex" value="火星人" v-model="sex">火星人
      <hr>
      <select name="city" id="" v-model="city">
        <option value="北京">北京</option>
        <option value="上海">上海</option>
        <option value="澳门">澳门</option>
      </select>
      <select name="citys" id="" multiple v-model="citys">
        <option value="北京">北京</option>
        <option value="上海">上海</option>
        <option value="澳门">澳门</option>
        <option value="澳门">澳门</option>
        <option value="澳门">澳门</option>
        <option value="澳门">澳门</option>
        <option value="澳门">澳门</option>
        <option value="澳门">澳门</option>
        <option value="澳门">澳门</option>
      </select>
    </form>
  </div>
</body>
<script type="text/javascript">
  Vue.config.productionTip = false;
  const vm = new Vue({
    el: "#app",
    data() {
      return {
        isArgree: false,
        food: [],
        sex: "",
        city: "",
        citys: []
      }
    }
  })
</script>

</html>